package com.goodving.guli.model.uploadhelper.p074a.p075a;


import com.goodving.guli.model.uploadhelper.C1312a;
import com.goodving.guli.model.uploadhelper.p074a.C1300g;
import com.goodving.guli.server.AdvHttpClient;
import com.goodving.guli.server.GuliHttpClient;
import com.goodving.guli.view.C3657a;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

import cz.msebera.android.httpclient.Header;


/* renamed from: cn.com.smartdevices.bracelet.i.a.a.a */
public class C1301a extends C1300g<Object, String> {
    private String rul;

    public C1301a(String str) {
        this.rul = str;
    }

    class C1303c {
        public String f6667a;

        private C1303c() {
            this.f6667a = C3657a.f18328f;
        }
    }

    class C1302b extends AsyncHttpResponseHandler {
        final /* synthetic */ C1303c f6665a;
        final /* synthetic */ C1301a f6666b;

        C1302b(C1301a c1301a, C1303c c1303c) {
            this.f6666b = c1301a;
            this.f6665a = c1303c;
        }

        public void onFailure(int i, Header[] headerArr, byte[] bArr, Throwable th) {
            if (bArr != null) {
                this.f6665a.f6667a = new String(bArr);
            }
            this.f6666b.exception(new C1312a(4, this.f6665a.f6667a, th));
        }

        public void onSuccess(int i, Header[] headerArr, byte[] bArr) {
            if (bArr != null) {
                this.f6665a.f6667a = new String(bArr);
            }
        }
    }

    public /* synthetic */ String  m11506a(Object obj) {
        return m11508b(obj);
    }

    public String m11508b(Object obj) {
        C1303c c1303c = new C1303c();
        AsyncHttpResponseHandler c1302b = new C1302b(this, c1303c);
        if (obj instanceof RequestParams) { // C2886O
            AdvHttpClient.post(GuliHttpClient.syncHttpClient, this.rul, (RequestParams) obj, c1302b);
        }
        return c1303c.f6667a;
    }
}
